

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta charset="utf-8" /><meta name="format-detection" content="telephone=no" /><meta name="viewport" content="initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" /><meta name="apple-mobile-web-app-status-bar-style" content="black" /><meta name="apple-mobile-web-app-title" content="菜虫网" /><meta name="apple-mobile-web-app-capable" content="yes" /><meta name="keywords" content="&lt;%= Page.Items[MobileHelper.Keyword]%>" /><meta name="description" content="&lt;%= Page.Items[MobileHelper.Description] %>" />
    <link href="http://m.caichongwang.com/images/logo.png" rel="apple-touch-icon-precomposed" />
    <link href="http://m.caichongwang.com/images/Icon@2x.png" sizes="114x114" rel="apple-touch-icon-precomposed" />
    <meta name="author" content="晓东,新伟,永青" /><title>
	
</title>
    <link href="http://m.caichongwang.com/css/common.css" type="text/css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/index.css" type="text/css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/icons.css" type="text/css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/product.css" type="text/css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/ucenter.css" type="text/css" rel="stylesheet" />
    <link href="http://m.caichongwang.com/css/add2home.css" type="text/css" rel="stylesheet" />
    
    
    


</head>
<body>
    <div id="main">
        
    <header class="main-header">
          <h1 class="logo"><a href="http://m.caichongwang.com/" title="菜虫网-享受健康新生活">菜虫网</a> </h1>
        <div class="list-head-title">
            <h2></h2>
        </div>
        <div class="top-shortcuts">
            <ul>
                <li class="ucenter"><a href="http://m.caichongwang.com/ucenter/index.aspx">用户中心</a> </li>
                <li class="cates"><a href="http://m.caichongwang.com/categories.aspx">全部分类</a> </li>
                <li class="cart" id="shoppingcart"><a href="http://m.caichongwang.com/shopcart.aspx">购物车</a> </li>
            </ul>
        </div>
    </header>
    
    
    
    <!-- 列表 -->
<script src="http://m.caichongwang.com/js/jquery.js" type="text/javascript"></script>
    <script src="http://m.caichongwang.com/js/common.js" type="text/javascript"></script>
    <section class="fav-list">
    </section> <section id="loading">
        <img src="http://m.caichongwang.com/images/loading.gif" />
    </section>
 
    <section id="empty">
       
    </section>
    <!-- 列表end -->

       <script>
           var state = 10, pageindex = 1, pagesize = 20, isLoading = false, keyword = $("#keyword").val();
           $("#empty").hide();
           LoadData();
           function LoadData() {
               
               $("#loading").show();
               isLoading = true;
               $.get(baseuri + "service/data.asmx/GetWishList?keyword=" + keyword + "&pageindex=" + pageindex + "&pagesize=" + pagesize, function (data) {
                   if (data.Msg === "Ok") {
                       for (var i in data.Obj) {
                           var item = data.Obj[i];
                           var dom = '<dl><dt> <a href="' + baseuri + 'products.aspx?productid=' + item.ProductId + '"><img src="' + item.ImageUrl + '" alt=""></a></dt><dd><p><a href="' + baseuri + 'products.aspx?productid=' + item.ProductId + '">' + item.Name + '<span>(' + item.Sku + ')</span><span></p><p><b>' + item.Price + '</b></p><a href="javascript:del(' + item.ItemId + ')" class="del-fav" >删除</a> </dd></dl>';
                           $(".fav-list").append(dom);

                       }
                       pageindex++;
                       $("#loading").hide();
                       isLoading = false;
                   } else if (data.Code === 102) {
                       isLoading = true;
                       $("#loading").hide();
                       if (pageindex == 1) {
                           var empty = ' <p class="emptycart">收藏夹中没有商品哦,<a href="http://m.caichongwang.com/"><b>继续去逛逛>></b></a></p>';
                               $(".fav-list").append(empty);
                           }
                       } else {
                           isLoading = false;
                       }
               });
            
           }
           function onScroll(event) {
               // Only check when we're not still waiting for data.
               if (!isLoading) {
                   // Check if we're within 100 pixels of the bottom edge of the broser window.
                   var closeToBottom = ($(window).scrollTop() + $(window).height() > $(document).height() - 100);
                   if (closeToBottom) {
                       LoadData();
                   }
               }
           };
         
           $(window).scroll(onScroll);
           $("#search").click(function(e) {
               e.preventDefault();
               keyword = $("#keyword").val();
               $(".orders-list").empty();
               pageindex = 0;
               LoadData();
           });
           function del(id) {
               $.post( baseuri + "ucenter/UserWishList.aspx", { fid: id }, function (d) {

                       if (d.Msg === 'Ok') {
                           window.location.href = window.location.href;
                       }
                   });
                   return false;

          }
    </script>



        <!--固定搜索-->
        <div id="bottom-sch" class="sch-box search-fixed">
            <form id="f2" action="http://m.caichongwang.com/productlist.aspx" method="get">
                <div class="search layout mt20 mb20">
                    <input type="search" placeholder="奇异果" id="main-sch-bottom" name="keyword" />
                    <input type="submit" id="sch-submit-bottom" class="s-submit" value="" />
                </div>
            </form>
        </div>
        <!--固定搜索end-->

        <!--浮动按钮-->
        <div class="f-menu">
            <div class="floatmenu">
                <i class="menuinner"></i>
            </div>
            <div class="circle hide">
                <div class="c-ucenter"><a href="http://m.caichongwang.com/ucenter/index.aspx" class="c-ucLink"></a></div>
                <div class="c-sch c-menu"><a href="http://m.caichongwang.com/productlist.aspx" class="c-schlink"></a></div>
                <div class="c-order c-menu"><a href="http://m.caichongwang.com/ucenter/orders.aspx" class="c-orderlink"></a></div>
                <div class="c-service  c-menu"><a href="javascript:void(0)" class="c-servicelink"></a></div>
                <div class="c-shopcart c-menu"><a href="http://m.caichongwang.com/shopcart.aspx" class="c-cartlink"></a></div>
            </div>
        </div>
        <!--浮动按钮end-->
        <footer class="bottom">
            <div class="bottom-shortcuts layout">
                <ul>
                    <li><i class="login"></i><a href="http://m.caichongwang.com/logout.aspx">退出</a></li>
                    <li class="l-spacing"></li>
                    
                    <li class="fr"><i class="cart"></i><a href="http://m.caichongwang.com/ShopCart.aspx">购物车</a></li>
                </ul>
            </div>
            <div class="version">
                <span id="backtotop"><a href="javascript:void(0);"><i class="gray">▲</i>返回顶部</a></span>
		         <p> <span ><a href="http://m.caichongwang.com/">标准版</a>  <a href="http://www.caichongwang.com/?from=wap">电脑版</a> </span></p>
                <p class="copy">
                    菜虫网—国内最专业的生鲜产品网上商城<br />
                    经营许可备案号：粤B2-20120403<br />
                    菜虫网版权所有
                </p>
            </div>
        </footer>
        
    </div>
</body>
</html>
